The SonicMQ Advanced page allows the device configuration to be exported to or loaded from an XML file.
See Schema Example to view a sample schema used to define the exported CygNet SCADA data.
See Export Example to view sample exported data.
The properties for each section of this page are described below.
| Property | Description |
|---|---|
| Save to File | Click Save to File to save the device configuration to an XML definition file. Navigate to the desired file location, type the file name, and click Save. |
| Load from File | Click Load from File to import the device configuration from a previously saved XML definition file. Navigate to the desired file, select it, and click Open. |
|
<?xml version="1.0" ?> <schema targetNamespace="https://CygNetETM.com/Schemas" xmlns="https://www.w3.org/2001/XMLSchema" xmlns:cyg="https:/CygNetETM.com/Schemas" xmln:xsd="https://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <element name="CygNetExportData"> <complexType> <sequence> <element name="ExportResults" type="cyg:exportResultsType" /> <element name="RootGroup" type="cyg:rootGroupType" /> </sequence> <attribute name="hosttime" type="xsd:dateTime" use="required" /> <attribute name="exportdevice" type="xsd:string" use="required" /> <attribute name="filtersource" type="xsd:string" use="required" /> <attribute name="filter" type="xsd:string" use="required" /> </complexType> </element> <complexType name="exportResultsType"> <sequence> <element name="ExportResult" type="cyg:exportResultType" minOccurs="0" maxOccurs="unbounded" /> </sequence> </complexType> <complexType name="exportResultType"> <simpleContent> <extension base="xsd:string"> <attribute name="type" use="required" > <simpleType> <restriction base="xsd:NMTOKEN"> <enumeration value="error"/> <enumeration value="warning"/> <enumeration value="message"/> </restriction> </simpleType> </attribute> <attribute name="code" type="xsd:string" use="required" /> </extension> </simpleContent> </complexType> <complexType name="rootGroupType"> <sequence> <element name="Property" type="cyg:propertyType" minOccurs="0" maxOccurs="unbounded" /> <element name="SubGroup" type="cyg:subGroupType" minOccurs="0" maxOccurs="unbounded" /> </sequence> <attribute name="level" type="xsd:NMTOKEN" fixed="0" use="required" /> <attribute name="type" type="xsd:string" use="required" /> </complexType> <complexType name="subGroupType"> <complexContent> <extension base="cyg:subGroupInstType"> <sequence> <element name="SubGroup" type="cyg:subGroupType" minOccurs="0" maxOccurs="unbounded" /> </sequence> </extension> </complexContent> </complexType> <complexType name="subGroupInstType"> <sequence> <element name="Property" type="cyg:propertyType" minOccurs="0" maxOccurs="unbounded"/> <element name="Point" type="cyg:pointType" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute name="level" type="xsd:decimal" use="required" /> <attribute name="type" type="xsd:string" use="required" /> <attribute name="id" type="xsd:string" use="required" /> </complexType> <complexType name="propertyType"> <simpleContent> <extension base="xsd:string"> <attribute name="name" type="xsd:string" use="required" /> <attribute name="desc" type="xsd:string" use="required" /> </extension> </simpleContent> </complexType> <complexType name="pointType"> <sequence> <element name="Property" type="cyg:propertyType" minOccurs="0" maxOccurs="unbounded" /> </sequence> <attribute name="id" type="xsd:string" use="required" /> <attribute name="pointintime" type="xsd:dateTime" use="optional" /> </complexType> </schema> |
The following example shows exported data from the SonicMQ Export EIE.
|
<?xml version="1.0" ?> <cyg:CygNetExportData xmlns="https://CygNetETM.com/Schemas" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:cyg="https://CygNetETM.com/Schemas" xmlns:dt="urn:schemas-microsoft-com:datatypes" xsi:schemaLocation="https://CygNetETM.com/Schemas CygNetETM.xsd" hosttime="2016-07-08T22:42:00+00:00" filtersource="TEST1.GRP" filter="Export Hierarchy [View By Facility Type]" exportdevice="D-GMAS-LINEPACK_PIPE"> <cyg:ExportResults /> <cyg:RootGroup type="Generic" level="0"> <cyg:SubGroup level="1" type="Generic" id="F_MTR_STAT" /> <cyg:SubGroup level="1" type="Generic" id="EXPDEV" /> <cyg:SubGroup level="1" type="Generic" id="SEGMENT"> <cyg:SubGroup level="2" type="Facility" id="TEST1.UIS::CS6BTO7"> <cyg:Property name="facility_attr15" desc="Facility Attribute 15"> CS6B_CS7</cyg:Property> <cyg:Point id="TEST1.UIS::CS6BTO7.V--EH1" pointintime="2016-07-08T21:59:59+00:00"> <cyg:Property name="value" desc="Value">251.654557</cyg:Property> <cyg:Property name="status" desc="Status">3</cyg:Property> <cyg:Property name="longdescription" desc="Long Description">Pack Last Hour</cyg:Property> <cyg:Property name="timestamp" desc="Timestamp">2016-06-28T15:58:46+00:00</cyg:Property> <cyg:Property name="units" desc="Units">MMCF</cyg:Property> <cyg:Property name="uniformdatacode" desc="Uniform Data Code">V--EH1</cyg:Property> </cyg:Point> <cyg:Point id="TEST1.UIS::CS6BTO7.VD--EH1" pointintime="2016-07-08T21:59:59+00:00"> <cyg:Property name="value" desc="Value"> 0.9077</cyg:Property> <cyg:Property name="status" desc="Status">3</cyg:Property> <cyg:Property name="longdescription" desc="Long Description">Pack Delta Last Hour</cyg:Property> <cyg:Property name="timestamp" desc="Timestamp">2016-06-28T15:58:46+00:00</cyg:Property> <cyg:Property name="units" desc="Units">MMCF</cyg:Property> <cyg:Property name="uniformdatacode" desc="Uniform Data Code">VD--EH1</cyg:Property> </cyg:Point> </cyg:SubGroup> <cyg:SubGroup level="2" type="Facility" id="TEST1.UIS::CS7TO8A"> <cyg:Property name="facility_attr15" desc="Facility Attribute 15"> CS7_CS8A</cyg:Property> <cyg:Point id="TEST1.UIS::CS7TO8A.V--EH1" pointintime="2016-07-08T21:59:59+00:00"> <cyg:Property name="value" desc="Value"> 225.11182</cyg:Property> <cyg:Property name="status" desc="Status">3</cyg:Property> <cyg:Property name="longdescription" desc="Long Description">Pack Last Hour</cyg:Property> <cyg:Property name="timestamp" desc="Timestamp">2016-06-28T15:58:46+00:00</cyg:Property> <cyg:Property name="units" desc="Units">MMCF</cyg:Property> <cyg:Property name="uniformdatacode" desc="Uniform Data Code">V--EH1</cyg:Property> </cyg:Point> <cyg:Point id="TEST1.UIS::CS7TO8A.VD--EH1" pointintime="2016-07-08T21:59:59+00:00"> <cyg:Property name="value" desc="Value"> 1.878878</cyg:Property> <cyg:Property name="status" desc="Status">3</cyg:Property> <cyg:Property name="longdescription" desc="Long Description">Pack Delta Last Hour</cyg:Property> <cyg:Property name="timestamp" desc="Timestamp">2016-06-28T15:58:46+00:00</cyg:Property> <cyg:Property name="units" desc="Units">MMCF</cyg:Property> <cyg:Property name="uniformdatacode" desc="Uniform Data Vode">VD--EH1</cyg:Property> </cyg:Point> </cyg:SubGroup> <cyg:SubGroup level="2" type="Facility" id="TEST1.UIS::CS8BTO9"> <cyg:Property name="facility_attr15" desc="Facility 15">CS8B_CS9</cyg:Property> <cyg:Point id="TEST1.UIS::CS8BTO9.V--EH1" pointintime="2016-07-08T21:59:59+00:00"> <cyg:Property name="value" desc="Value"> 93.454057</cyg:Property> <cyg:Property name="status" desc="Status">3</cyg:Property> <cyg:Property name="longdescription" desc="Long Description">Pack Last Hour</cyg:Property> <cyg:Property name="timestamp" desc="Timestamp">2016-06-28T15:58:46+00:00</cyg:Property> <cyg:Property name="units" desc="Units">MMCF</cyg:Property> <cyg:Property name="uniformdatacode" desc="Uniform Data Code">V--EH1</cyg:Property> </cyg:Point> <cyg:Point id="TEST1.UIS::CS8BTO9.VD--EH1"pointintime="2016-07-08T21:59:59+00:00"> <cyg:Property name="value" desc="Value">-0.130121</cyg:Property> <cyg:Property name="status" desc="Status">3</cyg:Property> <cyg:Property name="longdescription" desc="Long Description">Pack Delta Last Hour</cyg:Property> <cyg:Property name="timestamp" desc="Timestamp">2016-06-28T15:58:46+00:00</cyg:Property> <cyg:Property name="units" desc="Units">MMCF</cyg:Property> <cyg:Property name="uniformdatacode" desc="Uniform Data Code">VD--EH1</cyg:Property> </cyg:Point> </cyg:SubGroup> <cyg:SubGroup level="2" type="Facility" id="TEST1.UIS::CS9TOHNT"> <cyg:Property name="facility_attr15" desc="Facility Attribute 15">CS9_HNT</cyg:Property> <cyg:Point id="TEST1.UIS::CS9TOHNT.V--EH1" pointintime="2016-07-08T21:59:59+00:00"> <cyg:Property name="value" desc="Value"> 88.576585</cyg:Property> <cyg:Property name="status" desc="Status">3</cyg:Property> <cyg:Property name="longdescription" desc="Long Description">Pack Last Hour</cyg:Property> <cyg:Property name="timestamp" desc="Timestamp">2016-06-28T15:58:46+00:00</cyg:Property> <cyg:Property name="units" desc="Units">MMCF</cyg:Property> <cyg:Property name="uniformdatacode" desc="Uniform Data Code">V--EH1</cyg:Property> </cyg:Point> <cyg:Point id="TEST1.UIS::CS9TOHNT.VD--EH1" pointintime="2016-07-08T21:59:59+00:00"> <cyg:Property name="value" desc="Value"> 0.625417</cyg:Property> <cyg:Property name="status" desc="Status">3</cyg:Property> <cyg:Property name="longdescription" desc="Long Description">Pack Delta Last Hour</cyg:Property> <cyg:Property name="timestamp" desc="Timestamp">2016-06-28T15:58:46+00:00</cyg:Property> <cyg:Property name="units" desc="Units">MMCF</cyg:Property> <cyg:Property name="uniformdatacode" desc="Uniform Data Code">VD--EH1</cyg:Property> </cyg:Point> </cyg:SubGroup> </cyg:SubGroup> </cyg:RootGroup> </cyg:CygNetExportData> |